<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../jquery-1.8.2.min.js"></script>
<script src="../layui/layui.js" charset="utf-8"></script>
<link rel="stylesheet" href="../layui/css/layui.css"  media="all">
</head>
<body>
<table class="layui-hide" id="test" lay-filter="test"></table>
<script>
var name=window.localStorage.getItem("name");
var pwd=window.localStorage.getItem("pwd");
layui.use(['table','jquery'], function(){
		 var table = layui.table;
		  var $=layui.jquery;
		
		  
		   tableStuinfo= table.render({
		    elem: '#test'
		    ,url:'/tealogin'
		    ,where:{
		    	teaname:name,
		    	teapassword:pwd
		    }
		    ,cols: [[
		    	 {field:'teaid', width:80, title: '身份编号', sort: true}
			      ,{field:'teaname', width:80, title: '姓名'}
			      ,{field:'teapassword', width:80, title: '密码'}
			      ,{field:'status', width:80, title: '状态'}//0学生，1老师
			      ,{field:'teadept', width:80, title: '部门', sort: true}
			      ,{field:'teaborrowmaxnum', width:80, title: '已借书量（本）'}
			      ,{field:'teaborrowbooknum', width:135, title: '最大借书数量（本）', sort: true}
			      ,{field:'teagivebooknum', width:135, title: '已还书（本）', sort: true}
			      ,{field:'data1', width:135, title: '性别', sort: true}
			      ,{field:'data2', width:135, title: '借书时间', sort: true}
			      ,{field:'data3', width:135, title: '还书时间', sort: true}
			
		    ]]
		    ,page: true
		  });
});
		   </script>
</body>
</html>